package cn.mjnxin.charge.model.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_file_path:文件管理文件夹表
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoFilePath implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="主键")
    private Long id;

    /**
     * 父文件夹编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="父文件夹编号")
    private Long parentId;

    /**
     * 文件夹名称
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件夹名称")
    private String pathName;

    /**
     * 创建文件夹的人
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="创建文件夹的人")
    private Long pathUserId;

    /**
     * 是否丢到回收站（0：否，1：是）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="是否丢到回收站（0：否，1：是）")
    private Long pathIsTrash;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getPathName() {
        return pathName;
    }

    public void setPathName(String pathName) {
        this.pathName = pathName == null ? null : pathName.trim();
    }

    public Long getPathUserId() {
        return pathUserId;
    }

    public void setPathUserId(Long pathUserId) {
        this.pathUserId = pathUserId;
    }

    public Long getPathIsTrash() {
        return pathIsTrash;
    }

    public void setPathIsTrash(Long pathIsTrash) {
        this.pathIsTrash = pathIsTrash;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", pathName=").append(pathName);
        sb.append(", pathUserId=").append(pathUserId);
        sb.append(", pathIsTrash=").append(pathIsTrash);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoFilePath other = (DemoFilePath) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getPathName() == null ? other.getPathName() == null : this.getPathName().equals(other.getPathName()))
            && (this.getPathUserId() == null ? other.getPathUserId() == null : this.getPathUserId().equals(other.getPathUserId()))
            && (this.getPathIsTrash() == null ? other.getPathIsTrash() == null : this.getPathIsTrash().equals(other.getPathIsTrash()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getPathName() == null) ? 0 : getPathName().hashCode());
        result = prime * result + ((getPathUserId() == null) ? 0 : getPathUserId().hashCode());
        result = prime * result + ((getPathIsTrash() == null) ? 0 : getPathIsTrash().hashCode());
        return result;
    }
}